package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Product;
import tech.aistar.entity.ProductType;
import tech.aistar.mapper.ProductMapper;
import tech.aistar.service.IProductService;
import tech.aistar.service.IProductTypeService;

import java.util.List;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/1/11 2:14 下午
 */
@Service
public class ProductServiceImpl implements IProductService {
    @Autowired
    private ProductMapper productMapper;

    @Override
    public List<Product> findAll(String name, Integer typeId) {
        return productMapper.findAll(name,typeId);
    }

    @Override
    public void delById(Integer id) {
        productMapper.delById(id);
    }
}
